package com.example.demo.web.api;

import com.example.demo.constant.RequestUrl;
import com.example.demo.param.LoginParam;
import com.example.demo.vo.ApiResult;
import com.example.demo.vo.LoginVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *@Description 登录接口
 *@Author Levi
 *@Date 2019/4/23-16:20
*/
@RequestMapping(value = RequestUrl.API)
@Api(value = "登录接口", tags = "登录接口")
public interface LoginApi {

    @PostMapping(value = RequestUrl.LOGIN)
    @ApiOperation(value="操作员登录")
    ApiResult<LoginVO> login(@RequestBody LoginParam loginParam) throws Exception;
}
